<?php
class ss_error {
	static $log='debug.log';
	
	public function __call($comm,$args){
	}
	static function group(){}
	static function groupEnd(){}
	static function dump(){
		call_user_func_array('self::log',func_get_args());
	}
	static function warn(){
		call_user_func_array('self::log',func_get_args());
	}
	static function log(){
		$msg="\n**********\n";
		foreach(func_get_args() as $val){
			if(is_array($val)||is_object($val)) $val=var_export ($val,true);
			$msg.=$val."\n";
		}
		$file=fopen(SITE_ROOT_PATH.DIRECTORY_SEPARATOR.'log'.DIRECTORY_SEPARATOR.self::$log,'a');
		fwrite($file,$msg."\n");
		fclose($file);
		//print($msg);
	}
	static function info(){
		call_user_func_array('self::log',func_get_args());
	}
}
?>